package admin

type Node struct {
	Id         int
	Pid        int
	Name       string
	Controller string
	Action     string
	Icon       string
	Ctime      int
	NodeItem   []Node `gorm:"foreignkey:Pid;association_foreignkey:Id"`
	Checked    bool   `gorm:"-"` // 忽略本字段
}

//定义结构体 对应的数据表
func (Node) TableName() string {
	return "node"
}
